<div class="col-lg-8">
    <div class="panel panel-default">
        <div class="form-group">
        <label>urutkan :</label>
            <select class="form-control">
                <option value="ORDER BY 'Tanggal' DESC">Iklan Terbaru</option>
                <option value="ORDER BY 'Tanggal' ASC">Iklan Lama</option>
                <option value="ORDER BY 'Judul' ASC">A-Z</option>
                <option value="ORDER BY 'Judul' DESC">Z-A</option>
                <option value="ORDER BY 'Harga' ASC">Murah ke Mahal</option>
                <option value="ORDER BY 'Harga' DESC">Mahal ke Murah</option>
            </select>
        </div>
        <div class="panel-heading">
            Striped Rows
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Nama Barang</th>
                            <th>Deskripsi</th>
                            <th>Harga</th>
                            <th>Kategori</th>
                            <th>Tanggal</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($data as $row){?>
                        <tr>
                            <td><?php echo $row->ID_Barang;?></td>
                            <td>
                                <a href="<?php echo site_url("jualbeli/detail_barang/".$row->ID_Barang); ?>">
                                    <?php echo $row->Judul;?> 
                                </a>
                            </td>
                            <td><?php echo $row->Deskripsi;?></td>
                            <td><?php echo $row->Harga;?></td>
                            <td><?php echo $row->Nama;?></td>
                            <td><?php echo $row->Tanggal;?></td>
                        </tr>
                        <?php }?>
                    </tbody>
                </table>
            </div>
        <!-- /.table-responsive -->
        </div>
    <!-- /.panel-body -->
    </div>
<!-- /.panel -->
</div>  